﻿package com.tudou.home.track
{
    import com.tudou.ad.interfaces.*;
    import com.tudou.ad.track.*;
    import com.tudou.home.consts.*;
    import com.tudou.home.utils.*;
    import com.tudou.js.*;

    public class ADTrackSender extends AdTracker
    {
        private static var instance:ADTrackSender;

        public function ADTrackSender()
        {
            return;
        }// end function

        override public function sendClick(param1:IAdThrowInfo, param2:IAdItemInfo, param3:String = "") : void
        {
            if (param1 == null || param2 == null)
            {
                return;
            }
            super.sendClick(param1, param2, param3);
            return;
        }// end function

        override public function sendComplete(param1:IAdThrowInfo, param2:IAdItemInfo) : void
        {
            if (param1 == null || param2 == null)
            {
                return;
            }
            super.sendComplete(param1, param2);
            return;
        }// end function

        override public function sendPlay(param1:IAdThrowInfo, param2:IAdItemInfo) : void
        {
            if (param1 == null || param2 == null)
            {
                return;
            }
            super.sendPlay(param1, param2);
            return;
        }// end function

        override protected function addJsMonitor(param1:String) : void
        {
            Binding.add(BindingConst.PAGE_LOADED, null, loadJavascript, [param1], true);
            return;
        }// end function

        public static function getInstance() : ADTrackSender
        {
            if (instance == null)
            {
                instance = new ADTrackSender;
            }
            return instance;
        }// end function

    }
}
